package com.zheng.oss.dao.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;
import com.zheng.common.base.PageEntity;

import java.io.Serializable;

/**
 * <p>
 * 个人文件分享表
 * </p>
 *
 * @author likun
 * @since 2018-05-08
 */
@TableName("oss_share_file")
public class OssShareFile extends PageEntity {

    private static final long serialVersionUID = 1L;

    private Integer id;
    @TableField("user_id")
    private Integer userId;
    @TableField("file_id")
    private Integer fileId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "OssShareFile{" +
                "id=" + id +
                ", userId=" + userId +
                ", fileId=" + fileId +
                "}";
    }
}
